package com.sxjh.entity.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

// 聚合硫酸铁
@Data
public class Finance9List9Result {

  @ApiModelProperty("序号")
  private Integer serialNumber;

  @ApiModelProperty("公司名称")
  private String companyName;

  @ApiModelProperty("物料名称")
  private String materialName;
  @ApiModelProperty("车辆名称")
  private String carNumber;
  @ApiModelProperty("原发数量")
  private BigDecimal netWeight;

  @ApiModelProperty("实收数量")
  private BigDecimal weighbridgeWeight;

  @ApiModelProperty("每吨包装重量")
  private BigDecimal packageWegiht;

  @ApiModelProperty("车数")
  private Integer vehCount;

  @ApiModelProperty("含税单价")
  private BigDecimal settlementPrice;

  @ApiModelProperty("含税物料总价")
  private BigDecimal settlementPriceSum;

  @ApiModelProperty("税率单位%")
  private BigDecimal taxRate;

  @ApiModelProperty("不含税单价")
  private BigDecimal settlementPriceNo;

  @ApiModelProperty("不含税总价")
  private BigDecimal settlementPriceSumNo;
  @ApiModelProperty("供货日期")
  private LocalDate factoryOutTime;

  public BigDecimal getNetWeight() {
    if ("".equals(netWeight) || netWeight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return netWeight;
  }

  public BigDecimal getWeighbridgeWeight() {
    if ("".equals(weighbridgeWeight) || weighbridgeWeight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return weighbridgeWeight;
  }

  public BigDecimal getPackageWegiht() {
    if ("".equals(packageWegiht) || packageWegiht == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return packageWegiht;
  }

  public BigDecimal getSettlementPrice() {
    if ("".equals(settlementPrice) || settlementPrice == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPrice;
  }

  public BigDecimal getSettlementPriceSum() {
    if ("".equals(settlementPriceSum) || settlementPriceSum == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPriceSum;
  }

  public BigDecimal getTaxRate() {
    if ("".equals(taxRate) || taxRate == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return taxRate;
  }

  public BigDecimal getSettlementPriceNo() {
    if ("".equals(settlementPriceNo) || settlementPriceNo == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPriceNo;
  }

  public BigDecimal getSettlementPriceSumNo() {
    if ("".equals(settlementPriceSumNo) || settlementPriceSumNo == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPriceSumNo;
  }
}
